package cn.zy.register.service;

import cn.zy.common.utils.RestResult;
import cn.zy.register.mapper.bo.SmallMiUserBO;
import cn.zy.register.mapper.domain.SmallMiUserDO;
import cn.zy.register.mapper.dto.SmallMiUserDTO;
import cn.zy.register.mapper.pojo.SmallMiUser;
import cn.zy.register.mapper.qo.SmallMiUserQO;

import java.util.List;

public interface SmallMiUserService {
    /**
     * 查询全部user信息
     *
     * @return
     */
    List<SmallMiUser> getAll();


    /**
     * 输入手机号获取验证码
     *
     * @param code
     * @return
     */
    RestResult<String> getcode(String code);


    /**
     * 注册账号
     *
     * @param miPhone
     * @param code
     * @param agreement
     * @return
     */
    RestResult<SmallMiUserDO> register(SmallMiUserBO miPhone, String code, String agreement);


    /**
     * 已注册登录  判断密码是否正确
     *
     * @param mi_phone
     * @param mi_pass_word
     * @return
     */
    RestResult<SmallMiUserDO> verifyLogin(String mi_phone, SmallMiUserBO mi_pass_word);


    /**
     * 生成小米账号
     *
     * @return
     */
    RestResult<SmallMiUserDO> setMiAccount(SmallMiUserBO smallMiUserBO);
}
